#ifndef _CPISTOLBULLET_H_
#define _CPISTOLBULLET_H_

#include "CBase.h"
#include "..\\Messaging\IListener.h"

class CPistolBullet : public CBase, public IListener
{
private:
	//CBase*	m_pOwner;
	int m_nBulletType;
	float m_fDeathTimer;

	int m_nBulletID;
public:
	enum bulletType {BLT_PLAYER, BLT_ENEMY};

	CPistolBullet(void);
	~CPistolBullet(void);

	// Utility functions
	//CBase* GetOwner() { return m_pOwner; }
	//void SetOwner(CBase* pOwner);

	int GetBulletType() { return m_nBulletType; }
	void SetBulletType(int nBulletType) { m_nBulletType = nBulletType; }

	void Update(float fElapsedTime);
	void Render(void);

	RECT GetCollisionRect(void);

	bool CheckCollision(IBaseInterface* pBase);
	void HandleEvent(CEvent* pEvnt);

};

#endif